<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="cn.netjava.pojo.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>manager review page</title>
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/managerpage.css">
   
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <div id="top">
		<h2>管理菜单</h2>
		<div id="topTags">
			<ul>
			  <li></li>
			</ul>
		</div>
	</div>
	
	<div id="main"> 
		<div id="leftMenu">
			<jsp:include page="managerleftmenu.jsp"></jsp:include>
		</div>
		
		<div id="content">
			<%List<Review> reviewList = (List<Review>)session.getAttribute("allreview"); %>
		    <table border=1>
		        <tr>
		            <td>评论id</td>
		            <td>所评论文章</td>
		            <td>作者</td>
		            <td>评论时间</td>
		            <td>是否删除</td>
		        </tr>
		        <%if(null!=reviewList){
		        for(Review review:reviewList){ %>
		        <tr>
		            <td><%=review.getId() %></td>
		            <td><%=review.getArticle().getArticle_title() %></td>
		            <td><%=review.getUser().getUserName() %></td>
		            <td><%=review.getIns_dt() %></td>
		            <td></td>
		        </tr>
		        <%}} %>
		    </table>
		</div>
	</div>
	<div id="footer">CopyRight @ 2009-2012 All Rights Reserved <br> 
    		 版权所有:长沙蒋于亭</div>
  </body>
</html>
